package com.lanou.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller //注释
public class Test02Controller {
    @RequestMapping("/log1")
    public String test1(){
        System.out.println("test1...........");
        //返回逻辑视图index,获得物理视图/index.jsp
        return "index";

    }
    @RequestMapping("/log")
    public String test(){
        System.out.println("test......");
        //返回逻辑视图index,获得物理视图/index.jsp
        return "index";

    }
}
